package com.cavy.platform.server.domain;

import lombok.Getter;

@Getter
public enum ConfigMapType {
    STRING("字符", new ConfigMapFactory.StringConfigMapFactory()), FILE("文件", new ConfigMapFactory.FileConfigMapFactory());

    private String label;
    private ConfigMapFactory factory;

    ConfigMapType(String label, ConfigMapFactory factory) {
        this.label = label;
        this.factory = factory;
    }
}
